Results 1 to 5 of 5

Thread: How do i place MOD HUDs where i want them to show on the server ???

  1. #1

    Default How do i place MOD HUDs where i want them to show on the server ???

    Is there a program to download that tells you the coordinates of where i want to place a message to appear on the servers screen or a image ???

  2. #2

    Default

    Its also possible to open for example the freeze-tag hud change coords and see what happens....that way u will learn what happens if u make changes.
    or use a mod with the text on the right place and look in the hud for the coords..

  3. #3
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,245

    Default

    Paint? You can grab a screenshot from MOHAA, and get (X,Y) coordinates where you'd like to put the text. It may be a bit off, but this should work imho.

    You just need to decide wheter you want to use virtualsize or not and scale the coords properly.

  4. #4
    Developer Sor's Avatar
    Join Date
    Aug 2010
    Location
    The Medieval City of Bruges
    Posts
    747

    Default

    Use the cvar "ui_drawcoords" and set it to 1 to display 2D UI coordinates in MoHAA itself.
    Morpheus Script (MoH) => You try to shoot yourself in the foot only to discover that MorpheusScript already shot your foot for you.

  5. #5
    Developer Sor's Avatar
    Join Date
    Aug 2010
    Location
    The Medieval City of Bruges
    Posts
    747

    Default

    Say you have put the resolution to 1024x768 then the Y-axis starts counting from the top (0 to 768) and the X-axis from the left (0 to 1024). Cvar "ui_drawcoords" confirms this,
    however when you use huddraw elements, each element has a certain alignment in both the X-dimension and the Y-dimension. By default this is "center" and "center".

    In order to directly use ui_drawcoords output as _rect data for your HUD element, you have to set the alignments such that they match the behaviour observed by ui_drawcoords. By this I mean:
    Code:
     huddraw_align X "left" "top"
    For reference...

    X alignments:
    "left": position 0 is the leftmost position on the screen, while position <resolution X> is the rightmost position.
    "right": position 0 is the rightmost position on the screen, while position -<resolution X> is the leftmost position.
    "center": position 0 is the centre position (for X) on the screen, while -(<resolution X> / 2) is the leftmost position and (<resolution X> / 2) is the rightmost position.

    Y alignments:
    "top": position 0 is the uppermost position on the screen, while position <resolution Y> is the lowermost position.
    "bottom": position 0 is the lowermost position on the screen, while position -<resolution Y> is the uppermost position.
    "center": position 0 is the centre position (for Y) on the screen, while -(<resolution Y> / 2) is the uppermost position and (<resolution Y> / 2) is the lowermost position.
    Morpheus Script (MoH) => You try to shoot yourself in the foot only to discover that MorpheusScript already shot your foot for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •